package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 水煮结束报工表
 * </p>
 *
 * @author zhc
 * @since 2024-08-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_waterboiltaskfinish")
@ApiModel(value = "QingWaterboiltaskfinishEntity对象", description = "水煮结束报工表")
public class QingWaterboiltaskfinishEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("表主键")
    @TableId(value = "main_id", type = IdType.AUTO)
    private Long mainId;

    @ApiModelProperty("数据ID")
    @TableField("qingApplyId")
    private Long qingApplyId;

    @ApiModelProperty("下载批次")
    @TableField("downBatchId")
    private String downBatchId;

    @ApiModelProperty("编号")
    @TableField("qingRowCode")
    private String qingRowCode;

    @ApiModelProperty("申请人")
    @TableField("qingApplyUser")
    private String qingApplyUser;

    @ApiModelProperty("申请日期")
    @TableField("qingApplyDate")
    private LocalDateTime qingApplyDate;

    @ApiModelProperty("更新日期")
    @TableField("qingUpdateDate")
    private LocalDateTime qingUpdateDate;

    @ApiModelProperty("当前流程状态")
    @TableField("qingRowState")
    private String qingRowState;

    @ApiModelProperty("当前流程状态")
    @TableField("workTaskCode")
    private String workTaskCode;

    @ApiModelProperty("剩余未完成数")
    @TableField("leaveQty")
    private Integer leaveQty;

    @ApiModelProperty("工单编号")
    @TableField("workCode")
    private String workCode;

    @ApiModelProperty("批次号")
    @TableField("proBatchNo")
    private String proBatchNo;

    @ApiModelProperty("报工批次时间")
    @TableField("proBatchTime")
    private String proBatchTime;

    @ApiModelProperty("已完成数")
    @TableField("finishQty")
    private Integer finishQty;

    @ApiModelProperty("超时")
    @TableField("timeOutTimeInStr")
    private String timeOutTimeInStr;

    @ApiModelProperty("剩余时间")
    @TableField("leaveTime")
    private Integer leaveTime;

    @ApiModelProperty("标准水煮时长")
    @TableField("needBoilTime")
    private Integer needBoilTime;

    @ApiModelProperty("水煮时长")
    @TableField("boilTimeInStr")
    private String boilTimeInStr;

    @ApiModelProperty("水煮箱号")
    @TableField("cartonCode")
    private String cartonCode;

    @ApiModelProperty("实际结束时间")
    @TableField("realEndBoilTime")
    private LocalDateTime realEndBoilTime;

    @ApiModelProperty("水煮框")
    @TableField("cartonName")
    private String cartonName;

    @ApiModelProperty("计划数")
    @TableField("planQty")
    private Integer planQty;

    @ApiModelProperty("预计结束时间")
    @TableField("planEndTime")
    private LocalDateTime planEndTime;

    @ApiModelProperty("开始时间")
    @TableField("startBoilTime")
    private LocalDateTime startBoilTime;

    @ApiModelProperty("报工后良品数")
    @TableField("qualifyQty")
    private Integer qualifyQty;

    @ApiModelProperty("产品名称")
    @TableField("invName")
    private String invName;

    @ApiModelProperty("产品编号")
    @TableField("invCode")
    private String invCode;

    @ApiModelProperty("超时(按秒计时整数）")
    @TableField("timeOutTimeInSecond")
    private Integer timeOutTimeInSecond;

    @ApiModelProperty("水煮时长(按秒计时）")
    @TableField("boilTimeInSecond")
    private Integer boilTimeInSecond;

    @ApiModelProperty("员工工号")
    @TableField("psnCode")
    private String psnCode;

    @ApiModelProperty("生产人员")
    @TableField("psnName")
    private String psnName;


    //水煮启动记录Id boilStartRowNo

    @ApiModelProperty("水煮启动记录Id")
    @TableField("boilStartRowNo")
    private String boilStartRowNo;

    @ApiModelProperty("水煮框状态")
    @TableField("cartonStatus")
    private String cartonStatus;

    @ApiModelProperty("单框数量")
    @TableField("eachCartonQty")
    private int eachCartonQty;
}
